{% extends 'base.html' %}

{% block title %}
    Python语言基础
{% endblock %}

{% block article %}
    <section class="main_section">
        <section class="course_detail">
            <img src="/{{course.img}}" alt="">
            <div class="course_detail_div">
                <h1>{{course.name}} </h1>
                <p>课程种类：{{course.category}}</p>
                <p>发布时间：{{course.createAt}}</p>
                <p>价格：<span class="price">￥{{course.price}}</span></p>
                <p>
                    <a href="{%url 'course_add_cart' course.id %}">加入购物车</a>
                    <a href="{%url 'course_buy' course.id %}">立即购买</a>
                    <a href="video.html">立即观看</a>
                </p>
            </div>
        </section>
        <section class="course_summary">
            <h2>[课程介绍]</h2>
            <p class="summary_p">
                {{course.description}}
            </p>
        </section>
    </section>
{% endblock %}
